package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 社工订单结算明细对象 jiajia_order_settle_detail
 * 
 * @author ruoyi
 * @date 2024-05-10
 */
public class JiajiaOrderSettleDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 结算订单总金额 */
    @Excel(name = "结算订单总金额")
    private BigDecimal totalAmount;

    /** 结算总金额 */
    @Excel(name = "结算总金额")
    private BigDecimal payAmount;

    /** 结算开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结算开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结算结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结算结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 被结算的社工ID */
    @Excel(name = "被结算的社工ID")
    private Long wid;

    /** 结算比例 */
    @Excel(name = "结算比例")
    private BigDecimal rate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }
    public void setPayAmount(BigDecimal payAmount) 
    {
        this.payAmount = payAmount;
    }

    public BigDecimal getPayAmount() 
    {
        return payAmount;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setWid(Long wid) 
    {
        this.wid = wid;
    }

    public Long getWid() 
    {
        return wid;
    }
    public void setRate(BigDecimal rate) 
    {
        this.rate = rate;
    }

    public BigDecimal getRate() 
    {
        return rate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("totalAmount", getTotalAmount())
            .append("payAmount", getPayAmount())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("wid", getWid())
            .append("rate", getRate())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
